﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001053 RID: 4179
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournPermanentTalentInfo : IMessage<RogueTournPermanentTalentInfo>, IMessage, IEquatable<RogueTournPermanentTalentInfo>, IDeepCloneable<RogueTournPermanentTalentInfo>, IBufferMessage
	{
		// Token: 0x170034C0 RID: 13504
		// (get) Token: 0x0600BAAF RID: 47791 RVA: 0x001F74AF File Offset: 0x001F56AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournPermanentTalentInfo> Parser
		{
			get
			{
				return RogueTournPermanentTalentInfo._parser;
			}
		}

		// Token: 0x170034C1 RID: 13505
		// (get) Token: 0x0600BAB0 RID: 47792 RVA: 0x001F74B6 File Offset: 0x001F56B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournPermanentTalentInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034C2 RID: 13506
		// (get) Token: 0x0600BAB1 RID: 47793 RVA: 0x001F74C8 File Offset: 0x001F56C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournPermanentTalentInfo.Descriptor;
			}
		}

		// Token: 0x0600BAB2 RID: 47794 RVA: 0x001F74CF File Offset: 0x001F56CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo()
		{
		}

		// Token: 0x0600BAB3 RID: 47795 RVA: 0x001F74D8 File Offset: 0x001F56D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo(RogueTournPermanentTalentInfo other) : this()
		{
			this.talentInfoList_ = ((other.talentInfoList_ != null) ? other.talentInfoList_.Clone() : null);
			this.tournTalentCoinNum_ = other.tournTalentCoinNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BAB4 RID: 47796 RVA: 0x001F7524 File Offset: 0x001F5724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo Clone()
		{
			return new RogueTournPermanentTalentInfo(this);
		}

		// Token: 0x170034C3 RID: 13507
		// (get) Token: 0x0600BAB5 RID: 47797 RVA: 0x001F752C File Offset: 0x001F572C
		// (set) Token: 0x0600BAB6 RID: 47798 RVA: 0x001F7534 File Offset: 0x001F5734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTalentInfoList TalentInfoList
		{
			get
			{
				return this.talentInfoList_;
			}
			set
			{
				this.talentInfoList_ = value;
			}
		}

		// Token: 0x170034C4 RID: 13508
		// (get) Token: 0x0600BAB7 RID: 47799 RVA: 0x001F753D File Offset: 0x001F573D
		// (set) Token: 0x0600BAB8 RID: 47800 RVA: 0x001F7545 File Offset: 0x001F5745
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TournTalentCoinNum
		{
			get
			{
				return this.tournTalentCoinNum_;
			}
			set
			{
				this.tournTalentCoinNum_ = value;
			}
		}

		// Token: 0x0600BAB9 RID: 47801 RVA: 0x001F754E File Offset: 0x001F574E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournPermanentTalentInfo);
		}

		// Token: 0x0600BABA RID: 47802 RVA: 0x001F755C File Offset: 0x001F575C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournPermanentTalentInfo other)
		{
			return other != null && (other == this || (object.Equals(this.TalentInfoList, other.TalentInfoList) && this.TournTalentCoinNum == other.TournTalentCoinNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BABB RID: 47803 RVA: 0x001F75AC File Offset: 0x001F57AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.talentInfoList_ != null)
			{
				num ^= this.TalentInfoList.GetHashCode();
			}
			if (this.TournTalentCoinNum != 0U)
			{
				num ^= this.TournTalentCoinNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BABC RID: 47804 RVA: 0x001F7601 File Offset: 0x001F5801
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BABD RID: 47805 RVA: 0x001F7609 File Offset: 0x001F5809
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BABE RID: 47806 RVA: 0x001F7614 File Offset: 0x001F5814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.talentInfoList_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.TalentInfoList);
			}
			if (this.TournTalentCoinNum != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.TournTalentCoinNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BABF RID: 47807 RVA: 0x001F7670 File Offset: 0x001F5870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.talentInfoList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TalentInfoList);
			}
			if (this.TournTalentCoinNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TournTalentCoinNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BAC0 RID: 47808 RVA: 0x001F76C8 File Offset: 0x001F58C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournPermanentTalentInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.talentInfoList_ != null)
			{
				if (this.talentInfoList_ == null)
				{
					this.TalentInfoList = new RogueTalentInfoList();
				}
				this.TalentInfoList.MergeFrom(other.TalentInfoList);
			}
			if (other.TournTalentCoinNum != 0U)
			{
				this.TournTalentCoinNum = other.TournTalentCoinNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BAC1 RID: 47809 RVA: 0x001F7730 File Offset: 0x001F5930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BAC2 RID: 47810 RVA: 0x001F773C File Offset: 0x001F593C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TournTalentCoinNum = input.ReadUInt32();
					}
				}
				else
				{
					if (this.talentInfoList_ == null)
					{
						this.TalentInfoList = new RogueTalentInfoList();
					}
					input.ReadMessage(this.TalentInfoList);
				}
			}
		}

		// Token: 0x04004B3F RID: 19263
		private static readonly MessageParser<RogueTournPermanentTalentInfo> _parser = new MessageParser<RogueTournPermanentTalentInfo>(() => new RogueTournPermanentTalentInfo());

		// Token: 0x04004B40 RID: 19264
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B41 RID: 19265
		public const int TalentInfoListFieldNumber = 1;

		// Token: 0x04004B42 RID: 19266
		private RogueTalentInfoList talentInfoList_;

		// Token: 0x04004B43 RID: 19267
		public const int TournTalentCoinNumFieldNumber = 12;

		// Token: 0x04004B44 RID: 19268
		private uint tournTalentCoinNum_;
	}
}
